import 'package:flutter_xiaomi/app/modules/address/services/address_service.dart';
import 'package:get/get.dart';

class MineController extends GetxController {
  //TODO: Implement MineController
  // final AddressService _myService = Get.put(AddressService(),tag: "ser");

  final count = "这是我的页面".obs;
  @override
  void onInit() {
    super.onInit();

    // 在Controller初始化时监听Service中数据的变化
    // ever<String>(_myService.data, (newData) {
    //   ///刷新controller对外的数据
    //   count.value = newData;
    //   print("MineController${count.value}");
    // });
  }

  @override
  void onReady() {
    super.onReady();
  }

  @override
  void onClose() {
    super.onClose();
  }

  void increment() {
    //_myService.updateData("mine data");
  }
}
